package day06;
//本类是用来测试方法的重载演示demo
public class Test04 {
    public static void main(String[] args) {
        method();
        //4.调用method(int)
        method(666);
        //6.调用method(int,String)
        method(888,"熊大");
        //7.调用method(String,int)
        method("111",1);

    }
    public static void method(){
        System.out.println("无参无返回值");
    }
    public static void method(int n){
        System.out.println("有参无返回值的方法"+n);

    }
    public static void method(int n,String s){
        System.out.println(s+"今晚要吃"+n+"份大米饭");

    }
    public static void method(String a,int b){
        System.out.println(b+"今晚要干它"+a+"碗大米饭");


    }

}
